/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __RND_H__
#define __RND_H__

namespace liba
{

class Rnd
{
	unsigned current;

	void random_seed();
	static unsigned find_next(unsigned num);
public:
	explicit Rnd();
	explicit Rnd(unsigned start);
	Rnd(const Rnd & other);
	Rnd & operator= (const Rnd & other);
	int get_random(int min, int max); //min..max
	int get_random(int range); // 0..range-1
	double get_random(); // 0.0..1.0
};

} // namespace liba
using namespace liba;

#endif //__RND_H__